<div class="navi">
	<div class="left">
		<div class="btn-group">
			<?php 
				echo UI\Tag::btn('Add new');
				echo UI\Tag::btn('<span class="ico-equalizer"></span>', array (), true);
			?>
		</div>
	</div>
	<div class="right">
		<div class="page-title">Edit Country: <?php echo $post->name ?></div>
		<div class="btn-group">
			<?php echo UI\Admin\Tag::search_form(); ?>
		</div>
	</div>
</div>

<?php
	$form = new \UI\Admin\Form();
	$form->add_row(array(
		'content' => \Form::hidden('id', $post->id)
	));
	$form->add_row(array(
		'label' => 'Title',
		'required' => true,
		'content' => \Form::input('name', $post->name)
	));
	$form->add_row(array(
		'label' => 'Iso Code 2',
		'required' => true,
		'content' => \Form::input('iso_code_2', $post->iso_code_2)
	));
	$form->add_row(array(
		'label' => 'Iso Code 3',
		'required' => true,
		'content' => \Form::input('iso_code_3', $post->iso_code_3)
	));
	
	$form->add_btn(\Form::submit(null, 'Update', array('class' => 'btn btn-primary')));
	$form->add_btn(\Form::button(null, 'Back', array(
		'class' => 'btn', 
		'style' => 'margin-left: 5px;', 
		'onclick' => "App.redirect('".Uri::create('admin/country')."'); return false;"
	)));

	echo $form->html();
?>